﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script src="../Resource/Jquery/jquery-1.10.2.js"></script>
</head>
<body>
    <div id="d1"></div>
    <input type="button" id="btn1" value="保存" />
</body>
</html>
<script>
    function GetQueryString(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
        var r = window.location.search.substr(1).match(reg);
        if (r != null) return unescape(r[2]); return null;
    };

    var args = GetQueryString("args");
    args = decodeURI(decodeURI(args));
    $("#d1").html(args);

    $("#btn1").click(function () {
        var args = GetQueryString("args");
        args = decodeURI(decodeURI(args));
        args = eval("(" + args + ")");
        //{id:0,cells:['编号','国家','省份','城市','编码','创建时间','操作时间'],types:['text','textarea','text','text','text','select','date'],val:['11211','中国','江苏','张家港','Zhangjiagang','2011/2/18 15:00:00','2011/2/18 15:00:00']}

        var tr = {
            id: args.id, tds: [
                { text: "", color: "black", checkbox: { status: false, tag: "" } },
                { text: "11211", color: "black", checkbox: null },
                { text: "美国", color: "black", checkbox: null },
                { text: "江苏", color: "black", checkbox: null },
                { text: "浙江1", color: "black", checkbox: null },
                { text: "Zhenjiang", color: "black", checkbox: null },
                { text: "2011/2/18 15:00:00", color: "black", checkbox: null },
                { text: "2011/2/18 15:00:00", color: "black", checkbox: null },
            ]
        };

        window.parent.window.fid.setResult(tr);
        window.parent.window.fid.closeDialog();
    })

</script>
